import React, { Component } from 'react'
import { Button } from "react-native";
import { NavigationScreenConfigProps } from "react-navigation";

export default class ProfileScreen extends Component<{} & NavigationScreenConfigProps> {
    static navigationOptions = {
        title: 'Welcome to profile'
    };

    render() {
        const {navigate} = this.props.navigation;
        return (
            <Button title="Go to main screen" onPress={() => {
                navigate('Main')
            }}/>
        )
    }
}
